import request from '@/utils/request'

/**
 * 获取计费规则列表
 * @param {*} params 
 * @returns 
 */
export function getRuleListAPI(params){
    return request({
        url:'/parking/rule/list',
        params
    })
}

/**
 * 添加计费规则
 * @param {*} data 
 * @returns 
 */
export function addFeeRuleAPI(data){
  return request({
    url:'/parking/rule',
    method:'post',
    data
  })
}